<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <input type="checkbox" value="王老师"  >
    <script>
        const input = document.querySelector('input')
        // console.log(input.value)//获取文字、innerHTML
        // // console.log(input.innerHTML) //错误的
        // input.value = '刘老师'
        input.type = 'password'
        
    </script>
</body>
</html>